<template>
  <div class="event1">
    <h3>我是event1组件</h3>
    <el-button @click="emitValue">触发123</el-button>
  </div>
</template>

<script setup lang="ts">
const $emit = defineEmits(["click"]);

const emitValue = () => {
  $emit("click");
};
</script>

<style scoped lang="scss">
.event1 {
  height: 200px;
  width: 400px;
  background: green;
}
</style>
